﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace safehomeSimulation
{
    public partial class frmMain : Form
    {
        private Room _room1;
        private Room _room2;
        private Room _room3;
        private Room _room4;


        public frmMain()
        {
            InitializeComponent();
            _room1 = new Room();
            _room2 = new Room();
            _room3 = new Room();
            _room4 = new Room();
        }

        private void btnConfigure_Click(object sender, EventArgs e)
        {
            frmConfigure rooms = new frmConfigure(ref _room1,ref  _room2, ref _room3, ref _room4);
            rooms.ShowDialog();
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnSimulate_Click(object sender, EventArgs e)
        {
            frmGenerateE GE = new frmGenerateE(ref _room1, ref _room2, ref _room3, ref _room4);
            GE.ShowDialog();
        }
    }
}
